Part Number Hot Search : 
MAX6678 A2410E GT28F SAC50 5VXR220 NL27WZ08 NL27WZ08 MAX201
Product Description
Full Text Search
 

To Download RS5C372B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  i 2 c bus serial interface real-time clock ics rs5c372a/b electronic devices division no.ea-044-9908 application manual
no tice 1. the products and the product specifications described in this application manual are subject to change or dis - continuation of production without notice for reasons such as improvement. therefore, before deciding to use the products, please refer to ricoh sales representatives for the latest information thereon. 2. this application manual may not be copied or otherwise reproduced in whole or in part without prior written con - sent of ricoh. 3. please be sure to take any necessary formalities under relevant laws or regulations before exporting or other - wise taking out of your country the products or the technical information described herein. 4. the technical information described in this application manual shows typical characteristics of and example application circuits for the products. the release of such information is not to be construed as a warranty of or a grant of license under ricoh's or any third party's intellectual property rights or any other rights. 5. the products listed in this document are intended and designed for use as general electronic components in standard applications (office equipment, computer equipment, measuring instruments, consumer electronic products, amusement equipment etc.). those customers intending to use a product in an application requiring extreme quality and reliability, for example, in a highly specific application where the failure or misoperation of the product could result in human injury or death (aircraft, spacevehicle, nuclear reactor control system, traffic control system, automotive and transportation equipment, combustion equipment, safety devices, life support system etc.) should first contact us. 6. we are making our continuous effort to improve the quality and reliability of our products, but semiconductor products are likely to fail with certain probability. in order prevent any injury to persons or damages to property resulting from such failure, customers should be careful enough to incorporate safety measures in their design, such as redundancy feature, fire-containment feature and fail-safe feature. we do not assume any liability or responsibility for any loss or damage arising from misuse or inappropriate use of the products. 7. anti-radiation design is not implemented in the products described in this application manual. 8. please contact ricoh sales representatives should you have any questions or comments concerning the prod - ucts or the technical information. june 1995
rs5c372a outline ................................................................................................... 1 fea tures ................................................................................................ 1 block dia gram ..................................................................................... 2 applica tions ......................................................................................... 2 pin configura tion ................................................................................ 2 pin descriptions .................................................................................. 3 absolute maximum ra tings ............................................................... 3 recommended opera ting conditions .............................................. 4 dc chara cteristics ............................................................................. 4 a c chara cteristics ............................................................................. 5 RS5C372B outline ................................................................................................... 7 fea tures ................................................................................................ 7 block dia gram ..................................................................................... 8 applica tions ......................................................................................... 8 pin configura tion ................................................................................ 8 pin descriptions .................................................................................. 9 absolute maximum ra tings ............................................................... 9 recommended opera ting conditions ............................................ 10 dc chara cteristics ........................................................................... 10 a c chara cteristics ........................................................................... 11 rs5c372a/b general description ......................................................................... 13 functional descriptions ................................................................. 15 1. allocation of inter nal addresses .................................................................. 15 2. registers ............................................................................................. 16 rs5c372a/b applica tion manu al contents
usa ges .................................................................................................. 26 1. interf acing with the cpu ........................................................................... 26 2. configur ation of oscillating circuit and time t r imming ........................................ 35 3. oscillator halt sensing ............................................................................. 40 4. intra output and intrb output pins (rs5c372a), intr output pin (RS5C372B) .... 40 5. t ypical applications ................................................................................. 46 6. t ypical char acter istic measurements ............................................................ 49 7. t ypical softw are-based oper ations ............................................................... 51 p a cka ge dimensions .............................................................................. 54 t aping specifica tion .............................................................................. 54
i 2 c b us serial interf a ce real-time clock ic rs5c372a 1 outline the rs5c372a is a cmos type real-time clock which is connected to the cpu via 2-wires and capable of serial transmission of clock and calendar data to the cpu. the rs5c372a can generate various periodic interrupt clock pulses lasting for long period (one month), and alarm interrupt can be made by days of the week, hours, and minutes by two incorporated systems. since an oscilla - tion circuit is driven at a constant voltage, it undergoes fluctuations of few voltage and consequently offers low cur - rent consumption (typ. 0.5 a at 3v). it also provides an oscillator halt sensing function applicable for data valida - tion at power-on and other occasions and 32-khz clock output for an external micro computer. (nch. open drain out - put) the product also incorporates a time trimming circuit that adjusts the clock with higher precision by adjusting any errors in crystal oscillator frequencies based on signals from the cpu. the crystal oscillator may be selected from 32.768khz or 32.000khz types. integrated into an ultra compact and ultra thin 8 pin ssop package, the rs5c372a is the optimum choice for equipment requiring small sized and low power consuming products. fea tures ?time keeping voltage: 1.45v to 6.0v ?lowest supply current: 0.5 a typ. (0.9 a max.) : 3v (25?c) (1.0 a max.) : 3v (?0 to +85?c) ?connected to the cpu via only 2-wires (i 2 c bus interface, max.400khz, address 7bit) ? a clock counter (counting hours, minutes, and seconds) and a calendar counter (counting leap years, years, months, days, and days of the week) in bcd codes ?interrupt to the cpu (period of one month to one second, interrupt flag, interrupt halt function) (intra, intrb) ?two systems of alarm functions (days of the week, hours, and minutes) (intra, intrb) ?oscillation halt sensing to judge internal data validity ?clock output of 32.768khz (32.000khz) (output controllable via a register) ... (nch. open drain output) ?second digit adjustment by 30 seconds ?automatic leap year recognition up to the year 2099 ?12-hour or 24-hour time display selectable ?oscillation stabilizing capacity (c g , c d ) incorporated ?high precision time trimming circuit ?oscillator of 32.768khz or 32.000khz may be used ?cmos logic ?package: 8pin ssop note ?i 2 c bus is a trademark of philips electronics n.v. ?purchase of i 2 c components of ricoh company, ltd. conveys a license under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system comforms to the i 2 c standard specifica - tion as defined by philips.
rs5c372a 2 block dia gram c o m p a r a t o r _ a a l a r m _ a r e g i s t e r ( w e e k , m i n , h o u r ) a l a r m _ b r e g i s t e r ( w e e k , m i n , h o u r ) c o m p a r a t o r _ b t i m e c o u n t e r ( s e c , m i n , h o u r , w e e k , d a y , m o n t h , y e a r ) a d d r e s s r e g i s t e r a d d r e s s d e c o d e r s h i f t r e g i s t e r i n t e r r u p t c o n t r o l 3 2 k h z o u t p u t c o n t r o l d i v i d e r c o r r e c - t i o n d i v o s c o s c i n o s c o u t o s c d e t e c t i / o c o n t r o l v s s s c l s d a v d d i n t r a i n t r b pin configura tion ?8pin ssop i n t r b 1 s c l 2 s d a 3 v s s v d d o s c i n o s c o u t i n t r a 4 8 7 6 5 applica tions ?communication devices (multi function phone, portable phone, phs or pager) ?oa devices (fax, portable fax) ?computer (desk-top and mobile pc, portable word-processor, pda, electric note or video game) ?av components (portable audio unit, video camera,camera, digital camera or remote controller) ?home appliances (rice cooker, electric oven) ?other (car navigation system, multi-function watch)
rs5c372a 3 pin descriptions pin no. symbol name description 2 scl serial clock line this pin is used to input shift clock pulses to synchronize data input/output to and from the sda pin with this clock. up to 6v beyond v dd may be input. 3 sda serial data line this pin inputs and outputs written or read data in synchronization with shift clock pulses from the scl pin. up to 6v beyond v dd may be input. this pin functions as an nch open drain output. 5 intra interrupt output a this pin outputs periodic interrupt pulses and alarm interrupt (alarm_a, alarm_b) to the cpu. this pin is off when power is activated from 0v. this pin functions as an nch open drain output. 1 intrb interrupt output b this pin outputs 32.768khz clock pulses (when 32.768khz crystal is used), period - ic interrupt pulses to the cpu or alarm interrupt (alarm_b). it outputs 32.768khz when power source is activated from 0v. this pin functions as an nch open drain output. 7 oscin oscillator circuit 6 oscout input/output 8 vdd positive power supply input 4 vss negative power supply input these pins configure an oscillator circuit by connecting a 32.768khz or 32.000khz crystal oscillator between the oscin?scout pins. (any other oscillator circuit components are built into the rs5c372a.) the vdd pin is connected to the positive power supply and vss to the ground. absolute maximum ra tings (vss=0v) symbol item conditions ratings unit v dd supply voltage ?.3 to +7.0 v v i input voltage scl, sda ?.3 to +7.0 v v o1 output voltage 1 sda ?.3 to +7.0 v v o2 output voltage 2 intra, intrb ?.3 to +12 p d power dissipation topt=25?c 300 mw topt operating temperature ?0 to +85 ?c tstg storage temperature ?5 to +125 ?c absolute maximum ratings absolute maximum ratings are threshold limit values that must not be exceeded even for an instant under any conditions. moreover, such values for any two items must not be reached simultaneously. operation above these absolute maximum ratings may cause degradation or permanent damage to the device. these are stress ratings only and do not necessarily imply functional operation below these limits.
rs5c372a 4 recommended opera ting conditions (vss=0v, topt=?0 to +85?c) symbol item conditions min. typ. max. unit v dd supply voltage 2.0 6.0 v v clk timekeeping voltage 1.45 6.0 v 32.768 f xt oscillation frequency or khz 32.000 v pup1 pull-up voltage 1 scl, sda 6.0 v v pup2 pull-up voltage 2 intra, intrb 10.0 v dc chara cteristics unless otherwise specified: vss=0v, v dd =3v, topt=?0 to +85?c, oscillation frequency=32.768khz, or 32.000khz(r 1 =30k ) symbol item pin name conditions min. typ. max. unit v ih ??input voltage scl, sda 0.8v dd 6.0 v v il ??input voltage scl, sda ?.3 0.2v dd v i ol1 intra, intrb v ol1 =0.4v 1 ma i ol2 sda v ol2 =0.6v 6 ma i ilk input leakage current scl v i =6v or vss ? 1 a v dd =6v i oz output off state sda, intra, v o =6v or vss ? 1 a leakage current intrb v dd =6v v dd =3v, topt=25?c i dd1 vdd scl, sda=3v 0.5 0.9 a output=ope n * 1 v dd =3v, i dd2 vdd topt=?0 to +85?c 1.0 a scl, sda=3v output=ope n * 1 v dd =6v i dd3 vdd scl, sda=6v 0.8 2.0 a output=ope n * 1 c g internal oscillation capacitance 1 oscin 10 pf c d internal oscillation capacitance 2 oscout 10 pf output current standby current * 1) the mode outputs no clock pulses when output is open (output off state). for consumption current (output: no load) when 32khz pulses are output from intrb, see ?sages, 6. typical characteristic meas urements
rs5c372a 5 a c chara cteristics unless otherwise specified : v ss =0v, topt=?0 to +85?c, crystal=32.768khz or 32.000khz i/o conditions: v ih =0.8 v dd , v il =0.2 v dd , v ol =0.2 v dd , c l =50pf symbol item conditions min. typ. max. unit f scl scl clock frequency 0 100 khz t low scl clock ??time 4.7 s t high scl clock ??time 4.0 s t hd ; sta start condition hold time 4.0 s t su ; sto stop condition setup time 4.0 s t su ; sta start condition setup time 4.7 s t su ; dat data setup time 250 ns t hdh ; dat ??data hold time 0 ns t hdl ; dat ??data hold time 35 ns t pl ; dat sda ??stable time after falling of scl 2.0 s t pz ; dat sda off stable time after falling of scl 2.0 s t r rising time of scl and sda (input) 1000 ns t f falling time of scl and sda (input) 300 ns t sp spike width that can be removed 50 ns with input filter s s r p s c l s d a ( i n ) s d a ( o u t ) t l o w t h d ; s t a t h d h ; d a t t p z ; d a t t p l ; d a t t s u ; s t a t s u ; s t o t h i g h t h d ; s t a t s p t s u ; d a t s r s s t a r t c o n d i t i o n s t o p c o n d i t i o n r e p e a t e d s t a r t c o n d i t i o n p t h d l ; d a t * ) for detailed information refer to ?sages, 1.2 transmission system of i 2 c bus. ?v dd 3 2.0v (supports standard mode i 2 c bus)
rs5c372a 6 unless otherwise specified : v ss =0v, topt=?0 to +85?c, crystal=32.768khz or 32.000khz i/o conditions: v ih =0.8 v dd , v il =0.2 v dd , v ol =0.2 v dd , c l =50pf symbol item conditions min. typ. max. unit f scl scl clock frequency 0 400 khz t low scl clock ??time 1.3 s t high scl clock ??time 0.6 s t hd ; sta start condition hold time 0.6 s t su ; sto stop condition setup time 0.6 s t su ; sta start condition setup time 0.6 s t su ; dat data setup time 100 ns t hdh ; dat ??data hold time 0 ns t hdl ; dat ??data hold time 35 ns t pl ; dat sda ??stable time after falling of scl 0.9 s t pz ; dat sda off stable time after falling of scl 0.9 s t r rising time of scl and sda (input) 300 ns t f falling time of scl and sda (input) 300 ns t sp spike width that can be removed 50 ns with input filter s s r p s c l s d a ( i n ) s d a ( o u t ) t l o w t h d ; s t a t h d h ; d a t t p z ; d a t t p l ; d a t t s u ; s t a t s u ; s t o t h i g h t h d ; s t a t s p t s u ; d a t s r s s t a r t c o n d i t i o n s t o p c o n d i t i o n r e p e a t e d s t a r t c o n d i t i o n p t h d l ; d a t * ) for detailed information refer to ?sages, 1.2 transmission system of i 2 c bus. ?v dd 3 2.5v (supports fast mode i 2 c bus)
i 2 c b us serial interf a ce real-time clock ic RS5C372B 7 outline the RS5C372B is a cmos type real-time clock which is connected to the cpu via 2-wires and capable of serial transmission of clock and calendar data to the cpu. the RS5C372B can generate various periodic interrupt clock pulses lasting for long period (one month), and alarm interrupt can be made by days of the week, hours, and minutes by two incorporated systems. since an oscilla - tion circuit is driven at a constant voltage, it undergoes fluctuations of few voltage and consequently offers low cur - rent consumption (typ. 0.5 a at 3v). it also provides an oscillator halt sensing function applicable for data valida - tion at power-on and other occasions and 32-khz clock output for an external micro computer. (cmos output) the product also incorporates a time trimming circuit that adjusts the clock with higher precision by adjusting any errors in crystal oscillator frequencies based on signals from the cpu. the crystal oscillator may be selected from 32.768khz or 32.000khz types. integrated into an ultra compact and ultra thin 8 pin ssop package, the RS5C372B is the optimum choice for equipment requiring small sized and low power consuming products. fea tures ?time keeping voltage: 1.45v to 6.0v ?lowest supply current: 0.5 a typ. (0.9 a max.) : 3v (25?c) (1.0 a max.) : 3v (?0 to +85?c) ?connected to the cpu via only 2-wires (i 2 c bus interface, max.400khz, address 7bit) ? a clock counter (counting hours, minutes, and seconds) and a calendar counter (counting leap years, years, months, days, and days of the week) in bcd codes ?interrupt to the cpu (period of one month to one second, interrupt flag, interrupt halt function) (intr) ?two systems of alarm functions (days of the week, hours, and minutes) (intr) ?oscillation halt sensing to judge internal data validity ?clock output of 32.768khz (32.000khz) (output controllable via a register) ... (cmos output) ?second digit adjustment by 30 seconds ?automatic leap year recognition up to the year 2099 ?12-hour or 24-hour time display selectable ?oscillation stabilizing capacity (c g , c d ) incorporated ?high precision time trimming circuit ?oscillator of 32.768khz or 32.000khz may be used ?cmos logic ?package: 8pin ssop note ?i 2 c bus is a trademark of philips electronics n.v. ?purchase of i 2 c components of ricoh company, ltd. conveys a license under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system comforms to the i 2 c standard specifica - tion as defined by philips.
RS5C372B 8 block dia gram c o m p a r a t o r _ a a l a r m _ a r e g i s t e r ( w e e k , m i n , h o u r ) a l a r m _ b r e g i s t e r ( w e e k , m i n , h o u r ) c o m p a r a t o r _ b t i m e c o u n t e r ( s e c , m i n , h o u r , w e e k , d a y , m o n t h , y e a r ) a d d r e s s r e g i s t e r a d d r e s s d e c o d e r s h i f t r e g i s t e r i n t e r r u p t c o n t r o l 3 2 k h z o u t p u t c o n t r o l d i v i d e r c o r r e c - t i o n d i v o s c o s c i n o s c o u t 3 2 k o u t o s c d e t e c t i / o c o n t r o l v s s s c l s d a v d d i n t r pin configura tion ?8pin ssop 3 2 k o u t 1 s c l 2 s d a 3 v s s v d d o s c i n o s c o u t i n t r 4 8 7 6 5 applica tions ?communication devices (multi function phone, portable phone, phs or pager) ?oa devices (fax, portable fax) ?computer (desk-top and mobile pc, portable word-processor, pda, electric note or video game) ?av components (portable audio unit, video camera,camera, digital camera or remote controller) ?home appliances (rice cooker, electric oven) ?other (car navigation system, multi-function watch)
RS5C372B 9 pin descriptions pin no. symbol name description 2 scl serial clock line this pin is used to input shift clock pulses to synchronize data input/output to and from the sda pin with this clock. up to 6v beyond v dd may be input. 3 sda serial data line this pin inputs and outputs written or read data in synchronization with shift clock pulses from the scl pin. up to 6v beyond v dd may be input. this pin functions as an nch open drain output. 5 intr interrupt output this pin outputs periodic interrupt pulses and alarm interrupt (alarm_a, alarm_b) to the cpu. this pin is off when power is activated from 0v. this pin functions as an nch open drain output. 1 32kout 32-khz clock output the 32kout pin is used to output 32.768khz clock pulses (when 32.768khz crys - tal is used). enabled at power-on from 0 volts. cmos output. the RS5C372B can disable 32-khz clock output in response to a command from the host computer. 7 oscin oscillator circuit 6 oscout input/output 8 vdd positive power supply input 4 vss negative power supply input these pins configure an oscillator circuit by connecting a 32.768khz or 32.000khz crystal oscillator between the oscin?scout pins. (any other oscillator circuit components are built into the rs5c372a.) the vdd pin is connected to the positive power supply and vss to the ground. absolute maximum ra tings (vss=0v) symbol item conditions ratings unit v dd supply voltage ?.3 to +7.0 v v i input voltage scl, sda ?.3 to +7.0 v output voltage 1 sda ?.3 to +7.0 v o output voltage 2 intr ?.3 to +12 v output voltage 3 32kout ?.3 to v dd +0.3 p d power dissipation topt=25?c 300 mw topt operating temperature ?0 to +85 ?c tstg storage temperature ?5 to +125 ?c absolute maximum ratings absolute maximum ratings are threshold limit values that must not be exceeded even for an instant under any conditions. moreover, such values for any two items must not be reached simultaneously. operation above these absolute maximum ratings may cause degradation or permanent damage to the device. these are stress ratings only and do not necessarily imply functional operation below these limits.
RS5C372B 10 recommended opera ting conditions (vss=0v, topt=?0 to +85?c) symbol item conditions min. typ. max. unit v dd supply voltage 2.0 6.0 v v clk timekeeping voltage 1.45 6.0 v 32.768 f xt oscillation frequency or khz 32.000 v pup1 pull-up voltage 1 scl, sda 6.0 v v pup2 pull-up voltage 2 intr 10.0 v dc chara cteristics unless otherwise specified: vss=0v, v dd =3v, topt=?0 to +85?c, oscillation frequency=32.768khz, or 32.000khz(r 1 =30k ) symbol item pin name conditions min. typ. max. unit v ih ??input voltage scl, sda 0.8v dd 6.0 v v il ??input voltage scl, sda ?.3 0.2v dd v i oh ??output current 32kout v oh =v dd ?.5v ?.5 ma i ol1 intr, 32kout v ol1 =0.4v 1 ma i ol2 sda v ol2 =0.6v 6 ma i ilk input leakage current scl v i =6v or vss ? 1 a v dd =6v i oz output off state sda, intr v o =6v or vss ? 1 a leakage current 32kout v dd =6v v dd =3v, topt=25?c i dd1 vdd scl, sda=3v 0.5 0.9 a output=ope n * 1 v dd =3v, i dd2 vdd topt=?0 to +85?c 1.0 a scl, sda=3v output=ope n * 1 v dd =6v i dd3 vdd scl, sda=6v 0.8 2.0 a output=ope n * 1 c g internal oscillation capacitance 1 oscin 10 pf c d internal oscillation capacitance 2 oscout 10 pf ??output current standby current * 1) the mode outputs no clock pulses when output is open (output off state). for consumption current (output: no load) when 32khz pulses are output from 32kout, see ?sages, 6. typical characteristic mea surements
RS5C372B 11 a c chara cteristics unless otherwise specified : v ss =0v, topt=?0 to +85?c, crystal=32.768khz or 32.000khz i/o conditions: v ih =0.8 v dd , v il =0.2 v dd , v ol =0.2 v dd , c l =50pf symbol item conditions min. typ. max. unit f scl scl clock frequency 0 100 khz t low scl clock ??time 4.7 s t high scl clock ??time 4.0 s t hd ; sta start condition hold time 4.0 s t su ; sto stop condition hetup time 4.0 s t su ; sta start condition setup time 4.7 s t su ; dat data setup time 250 ns t hdh ; dat ??data hold time 0 ns t hdl ; dat ??data hold time 35 ns t pl ; dat sda ??stable time after falling of scl 2.0 s t pz ; dat sda off stable time after falling of scl 2.0 s t r rising time of scl and sda (input) 1000 ns t f falling time of scl and sda (input) 300 ns t sp spike width that can be removed 50 ns with input filter s s r p s c l s d a ( i n ) s d a ( o u t ) t l o w t h d ; s t a t h d h ; d a t t p z ; d a t t p l ; d a t t s u ; s t a t s u ; s t o t h i g h t h d ; s t a t s p t s u ; d a t s r s s t a r t c o n d i t i o n s t o p c o n d i t i o n r e p e a t e d s t a r t c o n d i t i o n p t h d l ; d a t * ) for detailed information refer to ?sages, 1.2 transmission system of i 2 c bus. ?v dd 3 2.0v (supports standard mode i 2 c bus)
RS5C372B 12 unless otherwise specified : v ss =0v, topt=?0 to +85?c, crystal=32.768khz or 32.000khz i/o conditions: v ih =0.8 v dd , v il =0.2 v dd , v ol =0.2 v dd , c l =50pf symbol item conditions min. typ. max. unit f scl scl clock frequency 0 400 khz t low scl clock ??time 1.3 s t high scl clock ??time 0.6 s t hd ; sta start condition hold time 0.6 s t su ; sto stop condition setup time 0.6 s t su ; sta start condition setup time 0.6 s t su ; dat data setup time 100 ns t hdh ; dat ??data hold time 0 ns t hdl ; dat ??data hold time 35 ns t pl ; dat sda ??stable time after falling of scl 0.9 s t pz ; dat sda off stable time after falling of scl 0.9 s t r rising time of scl and sda (input) 300 ns t f falling time of scl and sda (input) 300 ns t sp spike width that can be removed 50 ns with input filter s s r p s c l s d a ( i n ) s d a ( o u t ) t l o w t h d ; s t a t h d h ; d a t t p z ; d a t t p l ; d a t t s u ; s t a t s u ; s t o t h i g h t h d ; s t a t s p t s u ; d a t s r s s t a r t c o n d i t i o n s t o p c o n d i t i o n r e p e a t e d s t a r t c o n d i t i o n p t h d l ; d a t * ) for detailed information refer to ?sages, 1.2 transmission system of i 2 c bus. ?v dd 3 2.5v (supports fast mode i 2 c bus)
rs5c372a/b 13 general description 1. inter facing with the cpu the rs5c372a/b read /write data over i 2 c bus interface via 2-wires: sda (data) and scl (clock). since the output of the i/o pin of sda is open drain, data interfacing with a cpu with different supply voltage is possible by applying pull-up resistor on the circuit board. the maximum clock frequency of 400khz of scl enables data transfer in i 2 c bus fast mode. 2. clock function the clock function of the rs5c372a/b allows write/read data from lower two digits of the dominical year to sec - onds to and from the cpu. when lower two digits of the dominical year are multiples of 4, the year is recognized as a leap year automatically. up to the year 2099 leap years will be automatically recognized. 3. alar m function ? rs5c372a the rs5c372a has an alarm function that outputs an interrupt signal from intra or intrb output pins to the cpu when the day of the week, hour or minute corresponds to the setting. these two systems of alarms (alarm_a, alarm_b), each may output interrupt signal separately at a specified time. the alarm may be selectable between on and off for each day of the week, thus allowing outputting alarm everyday or on a specific day of the week. the alarm_a is output from the intra pin while the alarm_b is output from either the intra or the intrb pins. polling is possible separately for each alarm function. ? RS5C372B the RS5C372B has an alarm function that outputs an interrupt signal from intr output pin to the cpu when the day of the week, hour or minute corresponds to the setting. these two systems of alarms (alarm_a, alarm_b), each may output interrupt signal separately at a specified time. the alarm may be selectable between on and off for each day of the week, thus allowing outputting alarm everyday or on a specific day of the week. polling is possible separately for each alarm function. 4. high pr ecision time trimming function the rs5c372a/b have an internal oscillation circuit capacitance c g and c d so that an oscillation circuit may be con - figured simply by externally connecting a crystal. either 32.768khz or 32.000khz may be selected as a crystal oscil - lator by setting the internal register appropriately. the rs5c372a/b incorporate a time trimming circuit that adjusts gain or loss of the clock from the cpu up to approx. 189ppm ( 194ppm when 32.000khz crystal is used) by approximately 3ppm steps to correct discrepancy in oscillation frequency. (error after correction: 1.5ppm: 25?c) thus by adjusting frequencies for each system, ? clock display is possible at much higher precision than conventional real-time clock while using a crystal with broader fluctuation in precision. ? even seasonal frequency fluctuation may be corrected by adjusting seasonal clock error. * ) the year 2000 is a leap year while the year 2100 is not.
rs5c372a/b 14 ? for those systems that have temperature detection precision of clock function may be increased by correcting clock error according to temperature fluctuations. 5. oscillation halt sensing the oscillation halt sensing function uses a register to store oscillation halt information. this function may be used to determine if the rs5c372a/b supply power has been booted from 0v and if it has been backed up. this function is useful for determining if clock data is valid or invalid. 6. periodic inter r upt ? rs5c372a the rs5c372a can output periodic interrupt pulses in addition to alarm function from the intra and intrb pins. this frequency may be selected from 2hz (every 0.5 seconds), 1hz (every second), 1/60hz (every minute), 1/3600hz (every hour) and monthly (1st of month). output wave form for periodic interrupt may be selected from regular pulse waveform (2hz and 1hz) and wave - forms (every second, every minute, every hour and every month) that are appropriate for cpu level interrupt. out - puts may be selected either intra or intrb. the rs5c372a/b has polling function that monitors pin status in the register. ? RS5C372B the RS5C372B can output periodic interrupt pulses in addition to alarm function from the intr pin. this frequency may be selected from 2hz (every 0.5 seconds), 1hz (every second), 1/60hz (every minute), 1/3600hz (every hour) and monthly (1st of month). output wave form for periodic interrupt may be selected from regular pulse waveform (2hz and 1hz) and wave - forms (every second, every minute, every hour and every month) that are appropriate for cpu level interrupt. peri - odic interrupt outputs from intr. the RS5C372B has polling function that monitors pin status in the register. 7. 32-khz clock output ? rs5c372a the rs5c372a may output oscillation frequency from the intrb pin. this clock output is set for output by default, which is set to on or off by setting the register. ? RS5C372B the RS5C372B may output oscillation frequency from the 32kout pin. this clock output is set for output by default, which is set to on or off by setting the register. the 32kout pin is cmos push-pull output terminal. note the year-digit counter of rs5c372a/b counts only lower two digits of a year and no counter is supplied for upper two digits. when you are going to use this product in a system that must cope with ?000 year problem?which shall be corrected by software.
rs5c372a/b 15 functional descriptions 1. allocation of internal ad dresses internal address contents data* 1 a 3 a 2 a 1 a 0 d7 d6 d5 d4 d3 d2 d1 d0 0 0 0 0 0 second counter ? 2 s 40 s 20 s 10 s 8 s 4 s 2 s 1 1 0 0 0 1 minute counter m 40 m 20 m 10 m 8 m 4 m 2 m 1 2 0 0 1 0 hour counter h 20 h 10 h 8 h 4 h 2 h 1 p/a 3 0 0 1 1 day of the week counter w 4 w 2 w 1 4 0 1 0 0 day counter d 20 d 10 d 8 d 4 d 2 d 1 5 0 1 0 1 month counter mo 10 mo 8 mo 4 mo 2 mo 1 6 0 1 1 0 year counter y 80 y 40 y 20 y 10 y 8 y 4 y 2 y 1 7 0 1 1 1 time trimming register xsl f 6 f 5 f 4 f 3 f 2 f 1 f 0 8 1 0 0 0 alarm_a (minute register) am 40 am 20 am 10 am 8 am 4 am 2 am 1 9 1 0 0 1 alarm_a (hour register) ah 20 ah 10 ah 8 ah 4 ah 2 ah 1 ap/a a 1 0 1 0 alarm_a (day of the week register) aw 6 aw 5 aw 4 aw 3 aw 2 aw 1 aw 0 b 1 0 1 1 alarm_b (minute register) bm 40 bm 20 bm 10 bm 8 bm 4 bm 2 bm 1 c 1 1 0 0 alarm_b (hour register) bh 20 bh 10 bh 8 bh 4 bh 2 bh 1 bp/a d 1 1 0 1 alarm_b (day of the week register) bw 6 bw 5 bw 4 bw 3 bw 2 bw 1 bw 0 e 1 1 1 0 control register 1 aale bale sl 2 * 5 sl 1 * 5 test ct 2 ct 1 ct 0 f 1 1 1 1 control register 2 12/24 ad j * 3 clen ctfg aafg bafg xst p * 4 * 1) all the listed data can be read and written except for adj/xstp. * 2) the ?mark indicates data which can be read only and set to ??when read. * 3) the adj/xstp bit of the control register2 is set to adj for write and xstp for read operation. the xstp bit is set to ??by w riting data into the con - trol register2 for normal oscillation. * 4) when xstp is set to ?? the xsl, f 6 to f 0 , ct 2 to ct 0 , aale, bale, sl 2 , sl 1 , clen and test bits are reset to ?? * 5) sl 1 and sl 2 apply to the rs5c372a. for the RS5C372B, these bits must be filled with ??
rs5c372a/b 16 2. register s 2.1 contr ol register 1 (at internal ad dress eh) d7 d6 d5 d4 d3 d2 d1 d0 aale bale sl 2 * 2 sl 1 * 2 test ct 2 ct 1 ct 0 aale bale sl 2 * 2 sl 1 * 2 test ct 2 ct 1 ct 0 0 0 0 0 0 0 0 0 (for write operation) (for read operation) default* * 1) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc. * 2) sl 1 and sl 2 apply to the rs5c372a. for the RS5C372B, these bits must be filled with ?? 2.1-1 aale, bale alarm_a, alarm_b enable bits aale, bale description 0 alarm_a (alarm_b) correspondence action invalid 1 alarm_a (alarm_b) correspondence action valid 2.1-2 sl2, sl1 (rs5c372a only) (default) interrupt output select bits sl2 sl1 description 0 0 outputs alarm_a, alarm_b, int to the intra. outputs 32k clock pulses to the intrb. 0 1 outputs alarm_a, int to the intra. outputs 32k clock pulses, alarm_b to the intrb. 1 0 outputs alarm_a, alarm_b to the intra. outputs 32k clock pulses, int to the intrb. 1 1 outputs alarm_a to the intra. outputs 32k clock pulses, alarm_b, int to the intrb. by setting sl1 and sl2 bits, two alarm pulses (alarm_a and alarm_b), periodic interrupt output (int), 32k clock pulses may be output to the intra or intrb pins selectively. (default) 2.1-3 test test bit test description 0 ordinary operation mode 1 test mode (default) the test bit is used for ic test. set the test bit to 0 in ordinary operation.
rs5c372a/b 17 2.1-4 ct 2 , ct 1 , ct 0 periodic interrupt cycle select bit ct 2 ct 1 ct 0 description wave form mode cycle and falling timing 0 0 0 off (?? 0 0 1 fixed at ? 0 1 0 pulse mode 2hz (duty50%) 0 1 1 pulse mode 1hz (duty50%) 1 0 0 level mode every second (synchronized with second count up) 1 0 1 level mode every minute (00 second of every minute) 1 1 0 level mode every hour (00 minute(s) 00 second(s) of every hour) 1 1 1 level mode every month (the 1st day 00 a.m. 00 minute(s) 00 second(s) of every month) 1) pulse mode : outputs 2hz, 1hz clock pulses. for relationships with counting up of seconds see the diagram below. (default) * ) when 32.000khz crystal is used, in the 2hz clock pulse mode, 0.496s clock pulses and 0.504s clock pulse are output alternately. duty cycle for 1hz clock pulses becomes 50.4% (??duration is 0.496s while ??duration is 0.504s). 2) level mode : one second, one minute or one month may be selected for an interrupt cycle. counting up of sec - onds is matched with falling edge of interrupt output. 3) when the time trimming circuit is used, periodic interrupt cycle changes every 20 seconds. pulse mode : ??duration of output pulses may change in the maximum range of 3.784ms ( 3.875ms when 32.000khz crystal is used.) for example, duty will be 50 0.3784% (or 50 0.3875% when 32.000khz crystal is used) at 1hz. level mode : frequency in one second may change in the maximum range of 3.784ms ( 3.875ms when 32.000khz crystal is used.) relation betw een mode w a v ef or ms and ctfg bit ?pulse mode a p p r o x . 9 2 s ( 3 2 . 7 6 8 k h z c r y s t a l i s u s e d ) a p p r o x . 9 4 s ( 3 2 . 0 0 0 k h z c r y s t a l i s u s e d ) c t f g b i t ( c o u n t i n g u p o f s e c o n d s ) i n t r a o r i n t r b p i n s ( i n t r p i n f o r t h e r s 5 c 3 7 2 b ) * ) since counting up of seconds and the falling edge has a time lag of approx. 92 s (at 32.768khz) (approx. 94 s when 32.000khz crystal is used), time with apparently approx. one second of delay from time of the real-time clock may be read when time is read in synchronization w ith the falling edge of output.
rs5c372a/b 18 ?level mode w r i t e 0 t o c t f g ( s e c o n d c o u n t - u p ) w r i t e 0 t o c t f g c t f g b i t ( s e c o n d c o u n t - u p ) ( s e c o n d c o u n t - u p ) i n t r a o r i n t r b p i n s ( i n t r p i n f o r t h e r s 5 c 3 7 2 b ) 2.2 contr ol register 2 (at internal ad dress fh) d7 d6 d5 d4 d3 d2 d1 d0 12/24 adj clen ctfg aafg bafg 0 0 12/24 xstp clen ctfg aafg bafg 0 0 undefined 1 0 0 0 0 (for write operation) (for read operation) default* * ) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc. 2.2-1 12/24 12/24-hour time display system selection bit 12/24 description 0 12-hour time display system (separate for mornings and afternoons) 1 24-hour time display system being set this bit at ??indicates 12-hour display system while ??indicates 24-hour system. t ime display digit t able 24-hour time display system 12-hour time display system 24-hour time display system 12-hour time display system 00 12 (am12) 12 32 (pm12) 01 01 (am 1) 13 21 (pm 1) 02 02 (am 2) 14 22 (pm 2) 03 03 (am 3) 15 23 (pm 3) 04 04 (am 4) 16 24 (pm 4) 05 05 (am 5) 17 25 (pm 5) 06 06 (am 6) 18 26 (pm 6) 07 07 (am 7) 19 27 (pm 7) 08 08 (am 8) 20 28 (pm 8) 09 09 (am 9) 21 29 (pm 9) 10 10 (am10) 22 30 (pm10) 11 11 (am11) 23 31 (pm11) * ) either the 12-hour or 24-hour time display system should be selected before writing time data.
rs5c372a/b 19 2.2-2 adj 30 second adjust bit adj description 0 ordinary operation 1 second digit adjustment ? the following operations are performed by setting the second adj bit to 1. 1) for second digits ranging from ?0?to ?9?seconds: time counters smaller than seconds are reset and second digits are set to ?0? 2) for second digits ranging from ?0?to ?9?seconds: time counters smaller than seconds are reset and second digits are set to ?0? minute digits are incremented by 1. ? second digits are adjusted within 122 s (within 125 s: when 32.000khz crystal is used) from writing operation to adj. ? the adj bit is for write only and allows no read operation. 2.2-3 xstp oscillator halt sensing bit xstp description 0 ordinary oscillation 1 oscillator halt sensing (default) the xstp bit senses the oscillator halt. ? when oscillation is halted after initial power on from 0v or drop in supply voltage the bit is set to ??and which remains to be ??after it is restarted. this bit may be used to judge validity of clock and calendar count data after power on or supply voltage drop. ? when this bit is set to ?? xsl, f 6 to f 0 , ct 2 , ct 1 , ct 0 , aale, bale, sl 2 , sl 1 , clen and test bits are reset to ?? intra(intr) * will stop output and the intrb(32kout) * will output 32khz clock pulses. ? the xstp bit is set to ??by setting the control register 2 (address fh) during ordinary oscillation. 32-khz clock output bit clen description 0 32-khz clock output enabled 1 32-khz clock output disabled (default) by setting this bit to ?? output of clock pulses of the same frequency as the crystal oscillator is enabled. 2.2-4 clen * ) intra and intrb for the rs5c372a, intr and 32kout for the RS5C372B.
rs5c372a/b 20 2.2-5 ctfg periodic interrupt flag bit ctfg description 0 periodic interrupt output=off (?? 1 periodic interrupt output=on (?? (default) this bit is set to ??when periodic interrupt pulses are output (intra or intrb=?? * 1 . the ctfg bit may be set only to ??in the interrupt level mode. setting this bit to ??sets either the intra or the intrb to off (?? * 2 . when this bit is set to ??nothing happens. alarm_a (alarm_b) flag bit aafg, bafg description 0 unmatched alarm register with clock counter 1 matched alarm register with clock counter (default) ? the alarm interruption is enabled only when the aale, bale bits are set to ?? this bit turns to ??when matched time is sensed for each alarm. ? the aafg, bafg bit may be set only to ?? setting this bit to ??sets either the intra or the intrb to the off ?? when this bit is set to ??nothing happens. ? when the aale, bale bit is set to ?? alarm operation is disabled and ??is read from the aafg, bafg bit. output relationships betw een the alfg bit and intra or intr b ( intr f or the RS5C372B ) s e t t i n g o f t h e a a f g ( b a f g ) b i t t o 0 ( m a t c h e d a l a r m t i m e ) s e t t i n g o f t h e a a f g ( b a f g ) b i t t o 0 a a f g ( b a f g ) b i t ( m a t c h e d a l a r m t i m e ) ( m a t c h e d a l a r m t i m e ) i n t r a o r i n t r b p i n s ( i n t r p i n f o r t h e r s 5 c 3 7 2 b ) * 1) intr=??for the RS5C372B. * 2) intr=off (?? for the RS5C372B. 2.2-6 aafg, bafg * ) intr to the off (??) for the RS5C372B.
rs5c372a/b 21 2.3 cloc k counter (at internal ad dress 0-2h) ? time digit display (in bcd code) second digits : range from 00 to 59 and carried to minute digits when incremented from 59 to 00. minute digits : range from 00 to 59 and carried to hour digits when incremented from 59 to 00. hour digits : see descriptions on the 12/24 bit (section 2.2-1). carried to day and day-of-the-week digits when incremented from 11 p.m. to 12 a.m. or 23 to 00. ? any registered imaginary time should be replaced with correct time as carrying to such registered imaginary time digits from lower-order ones cause the clock counter malfunction. 2.3-1 second digit register (at inter nal address 0h) d7 d6 d5 d4 d3 d2 d1 d0 s 40 s 20 s 10 s 8 s 4 s 2 s 1 0 s 40 s 20 s 10 s 8 s 4 s 2 s 1 0 undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.3-2 min ute digit register (at inter nal address 1h) d7 d6 d5 d4 d3 d2 d1 d0 m 40 m 20 m 10 m 8 m 4 m 2 m 1 0 m 40 m 20 m 10 m 8 m 4 m 2 m 1 0 undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.3-3 hour digit register (at inter nal address 2h) d7 d6 d5 d4 d3 d2 d1 d0 p/a or h 20 h 10 h 8 h 4 h 2 h 1 0 0 p/a or h 20 h 10 h 8 h 4 h 2 h 1 0 0 undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* * ) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc.
rs5c372a/b 22 2.4 da y-of-the-week counter (at internal ad dress 3h) d7 d6 d5 d4 d3 d2 d1 d0 w 4 w 2 w 1 0 0 0 0 0 w 4 w 2 w 1 0 0 0 0 0 undefined undefined undefined (for write operation) (for read operation) default* * ) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc. ? day-of-the-week digits are incremented by 1 when carried to 1-day digits. ? day-of-the-week digits display (incremented in septimal notation): (w 4 , w 2 , w 1 )=(0,0,0) ? (0,0,1) ? .... ? (1,1,0) ? (0,0,0) ? the relation between days of the week and day-of-the-week digits is user changeable (e.g. sunday=0,0,0). ? the (w 4 , w 2 , w 1 ) should not be set to (1, 1, 1). 2.5 calendar counter (at internal ad dress 4 to 6h) ? the automatic calendar function provides the following calendar digit displays in bcd code. day digits : range from 1 to 31 (for january, march, may, july, august, october, and december). range from 1 to 30 (for april, june, september, and november). range from 1 to 29 (for february in leap years). range from 1 to 28 (for february in ordinary years). carried to month digits when cycled to 1. month digits : range from 1 to 12 and carried to year digits when cycled to 1. year digits : range from 00 to 99 and 00, 04, 08,..., 92, and 96 are counted as leap years. ? any registered imaginary time should be replaced with correct time as carrying to such registered imaginary time digits from lower-order ones cause the clock counter malfunction. 2.5-1 da y digit register (at inter nal address 4h) d7 d6 d5 d4 d3 d2 d1 d0 d 20 d 10 d 8 d 4 d 2 d 1 0 0 d 20 d 10 d 8 d 4 d 2 d 1 0 0 undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.5-2 month digit register (at inter nal address 5h) d7 d6 d5 d4 d3 d2 d1 d0 mo 10 mo 8 mo 4 mo 2 mo 1 0 0 0 mo 10 mo 8 mo 4 mo 2 mo 1 0 0 0 undefined undefined undefined undefined undefined (for write operation) (for read operation) default*
rs5c372a/b 23 2.5-3 y ear digit register (at inter nal address 6h) d7 d6 d5 d4 d3 d2 d1 d0 y 80 y 40 y 20 y 10 y 8 y 4 y 2 y 1 y 80 y 40 y 20 y 10 y 8 y 4 y 2 y 1 undefined undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.6 time t rimming register (at internal ad dress 7h) d7 d6 d5 d4 d3 d2 d1 d0 xsl f 6 f 5 f 4 f 3 f 2 f 1 f 0 xsl f 6 f 5 f 4 f 3 f 2 f 1 f 0 0 0 0 0 0 0 0 0 (for write operation) (for read operation) default* * ) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc. 2.6-1 xsl bit the xsl bit is used to select a crystal oscillator. set the xsl to ??(default) to use 32.768khz. set the xsl to ??to use 32.000khz. 2.6-2 f 6 to f 0 the time trimming circuit adjust one second count based on this register readings when second digit is 00, 20, or 40 seconds. normally, counting up to seconds is made once per 32,768 of clock pulse (or 32,000 when 32.000khz crys - tal is used) generated by the oscillator. setting data to this register activates the time trimming circuit. register counts will be incremented as ((f 5 , f 4 , f 3 , f 2 , f 1 , f 0 )?) 2 when f 6 is set to ?? register counts will be decremented as ((f 5 , f 4 , f 3 , f 2 , f 1 , f 0 )+1) 2 when f 6 is set to ?? counts will not change when (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 ) are set to ( * , 0, 0, 0, 0, 0, * ). for example, when 32.768khz crystal is used. when (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 ) are set to (0, 0, 0, 0, 1, 1, 1), counts will change as: 32,768+(7?) 2=32,780 (clock will be delayed) when second digit is 00, 20, or 40. when (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 ) are set to (0, 0, 0, 0, 0, 0, 1), counts will remain 32,768 without changing when second digit is 00, 20, or 40. when (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 ) are set to (1, 1, 1, 1, 1, 1, 0), counts will change as: 32,768+(?) 2=32,764 (clock will be advanced) when second digit is 00, 20, or 40. adding 2 clock pulses every 20 seconds: 2/(32,768 20)=3.051ppm (or 3.125ppm when 32.000khz crystal is used), delays the clock by approx. 3ppm. likewise, decrementing 2 clock pulses advances the clock by 3ppm. thus the clock may be adjusted to the precision of 1.5ppm. note that the time trimming function only adjust clock timing and oscillation frequency and 32-khz clock output is not adjusted. * ) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc.
rs5c372a/b 24 2.7 alarm_a, alarm_b register (alarm_a: internal ad dress 8 to ah; alarm_b: internal ad dress b to dh) 2.7-1 alar m_a min ute register (inter nal address 8h) d7 d6 d5 d4 d3 d2 d1 d0 am 40 am 20 am 10 am 8 am 4 am 2 am 1 0 am 40 am 20 am 10 am 8 am 4 am 2 am 1 0 undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.7-2 alar m_b min ute register (inter nal address bh) d7 d6 d5 d4 d3 d2 d1 d0 bm 40 bm 20 bm 10 bm 8 bm 4 bm 2 bm 1 0 bm 40 bm 20 bm 10 bm 8 bm 4 bm 2 bm 1 0 undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.7-3 alar m_a hour register (inter nal address 9h) d7 d6 d5 d4 d3 d2 d1 d0 ah 20 , ap/a ah 10 ah 8 ah 4 ah 2 ah 1 0 0 ah 20 , ap/a ah 10 ah 8 ah 4 ah 2 ah 1 0 0 undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.7-4 alar m_b hour register (inter nal address ch) d7 d6 d5 d4 d3 d2 d1 d0 bh 20 , ap/a bh 10 bh 8 bh 4 bh 2 bh 1 0 0 bh 20 , ap/a bh 10 bh 8 bh 4 bh 2 bh 1 0 0 undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* 2.7-5 alar m_a da y-of-the-w eek register (inter nal address ah) d7 d6 d5 d4 d3 d2 d1 d0 aw 6 aw 5 aw 4 aw 3 aw 2 aw 1 aw 0 0 aw 6 aw 5 aw 4 aw 3 aw 2 aw 1 aw 0 0 undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default*
rs5c372a/b 25 2.7-6 alar m_b da y-of-the-w eek register (inter nal address dh) d7 d6 d5 d4 d3 d2 d1 d0 bw 6 bw 5 bw 4 bw 3 bw 2 bw 1 bw 0 0 bw 6 bw 5 bw 4 bw 3 bw 2 bw 1 bw 0 0 undefined undefined undefined undefined undefined undefined undefined (for write operation) (for read operation) default* * ) the default means read value when xstp bit is set to ??by starting up from 0v, or supply voltage drop, etc. ? alarm_a, alarm_b hour register d5 is set to 0 for am and 1 for pm in the 12-hour display system at ap/a. the register d5 indicates 10 digit of hour digit in 24-hour display system at ah 20 . ? to activate alarm operation, any imaginary alarm time setting should not be left to avoid unmatching. ? in hour digit display midnight is set to 12, noon is set to 32 in 12-hour display system. (see section 2.2-1) ? aw 0 to aw 6 correspond to the day-of-the-week counter (w 4 , w 2 , w 1 ) being set at (0, 0, 0) to (1, 1, 0). ? no alarm pulses are output when all of aw 0 to aw 6 are set to ?? example of alarm time settings day-of-the-week 12-hour system 24-hour system alarm time settings sun. mon. tue. wed. thu. fri. sat. 10-hour 1-hour 10-min 1-min 10-hour 1-hour 10-min 1-min aw 0 aw 1 aw 2 aw 3 aw 4 aw 5 aw 6 00:00 am every day 1 1 1 1 1 1 1 1 2 0 0 0 0 0 0 01:30 am every day 1 1 1 1 1 1 1 0 1 3 0 0 1 3 0 11:59 am every day 1 1 1 1 1 1 1 1 1 5 9 1 1 5 9 00:00 pm on 0 1 1 1 1 1 0 3 2 0 0 1 2 0 0 monday through friday 01:30 pm on sunday 1 0 0 0 0 0 0 2 1 3 0 1 3 3 0 11:59 pm on monday, 0 1 0 1 0 1 0 3 1 5 9 2 3 5 9 wednesday, and friday designation of days of the week and aw 0 to aw 6 in the above table is an example.
rs5c372a/b 26 usa ges 1. interfacing with the cpu the rs5c372a/b employ the i 2 c bus system to be connected to the cpu via 2-wires. connection and transfer sys - tem of i 2 c bus are described in the following sections. note i 2 c bus is a trademark of philips electronics n.v. 1.1 connection of i 2 c b us 2-wires, scl and sda which are connected to i 2 c bus are used for transmit clock pulses and data respectively. all ics that are connected to these lines are designed that will be not be clamped when a voltage beyond supply volt - age is applied to input or output pins. open drain pins are used for output. this construction allows communication of signals between ics with different supply voltages by adding a pull-up resistor to each signal line as shown in the figure below. each ic is designed not to affect scl and sda signal lines when power to each of these is turned off separately. v d d 1 v d d 2 v d d 3 v d d 4 s c l r p r p s d a m i c r o c o n t r o l l e r r s 5 c 3 7 2 a / b o t h e r p e r i p h e r a l d e v i c e * 1) for data interface, the following conditions must be met: v dd 4 3 v dd 1 v dd 4 3 v dd 2 v dd 4 3 v dd 3 * 2) when the master is one, the microcontroller is ready for driving scl to ??and r p of scl may not be required.
rs5c372a/b 27 cautions on determining r p resistance (1) voltage drop at r p due to sum of input current or output current at off conditions on each ic pin connect - ed to the i 2 c bus shall be adequately small. (2) rising time of each signal shall be kept short even when all capacity of the bus is driven. (3) current consumed in i 2 c bus is small compared to the consumption current permitted for the entire sys - tem. when all ics connected to i 2 c bus are cmos type, condition (1) may usually be ignored since input current and off state output current is extremely small for the many cmos type ics. thus the maximum resistance of r p may be determined based on (2) while the minimum on (3) in most cas - es. in actual cases a resistor may be place between the bus and input/output pins of each ic to improve noise margins in which case the r p minimum value may be determined by the resistance. consumption current in the bus to review (3) above may be expressed by the formula below: bus consumption current = (sum of input current and off state output current of all devices in stand-by mode) bus stand-by duration bus stand-by duration + bus operation duration + supply voltage bus operation duration 2 r p resistance 2 (bus stand-by duration + bus operation duration) + supply voltage bus capacity charging/discharging times per unit time operation of 2?in the second member denominator in the above formula is derived from assumption that ??duration of sda and scl pins are the half of bus operation duration. 2?in the numerator of the same member is because there are two pins of sda and scl. the third member, (charging/discharging times per unit time) means number of transition from ??to ??of the signal line. calculation example is shown below: pull-up resistor (r p )=10k , bus capacity=50pf (both for scl and sda), v dd =3v in as system with sum of input current and off state output current of each pin=0.1 a, i 2 c bus is used for 10ms every second while the rest of 990ms is in the stand-by mode. in this mode number of transitions of the scl pin from ??to ??state is 100 while sda 50, every second. bus consumption current = 0.1 a 990ms 990ms + 10ms + 3v 10ms 2 10k 2 (990ms + 10ms) + 3v 50pf (100 + 50) = 0.099 a + 3.0 a + 0.0225 a = 3.12 a generally, the second member of the above formula is larger enough than the first and the third members, bus consumption current may be determined by the second member in many cases. . . . .
rs5c372a/b 28 1.2 t ransmission system of i 2 c b us 1.2-1 star t and stop conditions in i 2 c bus, sda must be kept at a certain state while scl is at the ??state as shown below during data transmis - sion. t h d l ; d a t o r t h d h ; d a t t s u ; d a t s d a s c l the scl and sda pins are at the ??level when no data transmission is made. changing the sda from ??to ? when the scl and the sda are ??activates the start condition and access is started. changing the sda from ? to ??when the scl is ??activates stop condition and accessing stopped. generation of start and stop conditions are always made by the master (see the figure below). s t o p c o n d i t i o n t s u ; s t o t h d ; s t a s t a r t c o n d i t i o n s d a s c l 1.2-2 data tr ansmission and its ac kno wledge after start condition is entered, data is transmitted by 1byte (8bits). any bytes of data may be serially transmitted. the receiving side will send an acknowledge signal to the transmission side each time 8bit data is transmitted. the acknowledge signal is sent immediately after falling to ??of scl8bit clock pulses of data transmission, by releasing the sda by the transmission side that has asserted the bus at that time and by turning the sda to ??by the receiving side. when transmission of 1byte data next to preceding 1byte of data is received, the receiving side releases the sda pin at falling edge of the scl9bit of clock pulses or when the receiving side switches to the trans - mission side it starts data transmission. when the master is the receiving side, it generates no acknowledge signal after the last 1byte of data from the slave to tell the transmitter that data transmission has completed when the slave side (transmission side) continues to release the sda pin so that the master will be able to generate stop condition. 1 2 8 9 a c k n o w l e d g e s i g n a l s t a r t c o n d i t i o n s c l f r o m t h e m a s t e r s d a f r o m t h e t r a n s m i s s i o n s i d e s d a f r o m t h e r e c e i v i n g s i d e
rs5c372a/b 29 1.2-3 data tr ansmission f or mat in i 2 c b us i 2 c bus generates no ce signals. in place of it each device has a 7bit slave address allocated. the first 1byte is allo - cated to this 7bit of slave address and to the command (r/w) for which data transmission direction is designated by the data transmission thereafter. 7bit address is sequentially transmitted from the msb and 2 and after bytes are read, when 8bit is ??and write when ?? the slave address of the rs5c372a/b are specified at (0110010). at the end of data transmission/receiving stop condition is generated to complete transmission. however, if start condition is generated without generating stop condition, repeated start condition is met and transmission/receiving data may be continued by setting the slave address again. use this procedures when the transmission direction needs to be changed during one transmission. s m a s t e r t o s l a v e s t a r t c o n d i t i o n p s l a v e t o m a s t e r s t o p c o n d i t i o n s r r e p e a t e d s t a r t c o n d i t i o n a a a c k n o w l e d g e s i g n a l a s 0 a a a p r / w = 0 ( w r i t e ) ( 0 1 1 0 0 1 0 ) d a t a i s w r i t t e n i n t o t h e s l a v e f r o m t h e m a s t e r w h e n d a t a i s r e a d f r o m t h e s l a v e i m m e d i a t e l y a f t e r 7 b i t a d d r e s s i n g f r o m t h e m a s t e r w h e n t h e t r a n s m i s s i o n d i r e c t i o n i s t o b e c h a n g e d d u r i n g t r a n s m i s s i o n . s 1 a a p r / w = 1 ( r e a d ) ( 0 1 1 0 0 1 0 ) s 0 a a s r 1 r / w = 0 ( w r i t e ) ( 0 1 1 0 0 1 0 ) r / w = 1 ( r e a d ) ( 0 1 1 0 0 1 0 ) a a p i n f o r m r e a d h a s b e e n c o m p l e t e d b y n o t g e n e r a t i n g a n a c k n o w l e d g e s i g n a l , t o t h e s l a v e s i d e . i n f o r m r e a d h a s b e e n c o m p l e t e d b y n o t g e n e r a t i n g a n a c k n o w l e d g e s i g n a l , t o t h e s l a v e s i d e . a a s l a v e a d d r e s s s l a v e a d d r e s s s l a v e a d d r e s s s l a v e a d d r e s s d a t a d a t a d a t a d a t a d a t a d a t a d a t a
rs5c372a/b 30 1.2-4 data tr ansmission wr ite f or mat in the rs5c372a/b although the i 2 c bus standard defines a transmission format for the slave address allocated for each ic, transmis - sion method of address information in ic is not defined. the rs5c372a/b transmit data the internal address point - er (4bit) and the transmission format register (4bit) at the 1byte next to one which transmitted a slave address and a write command. for write operation only one transmission format is available and (0000) is set to the transmission format register. the 3byte transmits data to the address specified by the internal address pointer written to the 2byte. internal address pointer settings are automatically incremented for 4byte and after. note that when the inter - nal address pointer is fh, it will change to 0h on transmitting the next byte. example of data writing (when writing to internal address eh to fh) s 0 1 1 0 0 0 1 0 1 1 1 0 0 0 0 0 a a a p a r / w = 0 ( w r i t e ) t r a n s m i s s i o n o f s l a v e a d d r e s s ( 0 1 1 0 0 1 0 ) s e t t i n g o f e h t o t h e i n t e r n a l a d d r e s s p o i n t e r s e t t i n g o f 0 h t o t h e t r a n s - m i s s i o n f o r m a t r e g i s t e r w r i t i n g o f d a t a t o t h e i n t e r n a l a d d r e s s e h . w r i t i n g o f d a t a t o t h e i n t e r n a l a d d r e s s f h . d a t a d a t a s a a m a s t e r t o s l a v e s t a r t c o n d i t i o n a c k n o w l e d g e s i g n a l a p s l a v e t o m a s t e r s t o p c o n d i t i o n
rs5c372a/b 31 1.2-5 data tr ansmission read f or mat of the rs5c372a/b the rs5c372a/b allow the following three readout methods of data from an internal register. 1) the first method to reading data from the internal register is to specify an internal address by setting the internal address pointer and the transmission format register described 1.2-4, generate the repeated start condition (see section 1.2-3) to change the data transmission direction to perform reading. the internal address pointer is set to fh when the stop condition is met. therefore, this method of reading allows no insertion of the stop condition before the repeated start condition. set 0h to the transmission format register. example 1 of data read (when data is read from 2h to 4h) s 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 0 a a a a p a 1 0 s r 0 0 1 0 a 1 1 r / w = 0 ( w r i t e ) t r a n s m i s s i o n o f s l a v e a d d r e s s ( 0 1 1 0 0 1 0 ) t r a n s m i s s i o n o f s l a v e a d d r e s s ( 0 1 1 0 0 1 0 ) s e t t i n g o f 2 h t o t h e i n t e r n a l a d d r e s s p o i n t e r s e t t i n g o f 0 h t o t h e t r a n s - m i s s i o n f o r m a t r e g i s t e r r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 2 h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 3 h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 4 h . d a t a d a t a d a t a r e p e a t e d s t a r t c o n d i t i o n r / w = 1 ( r e a d ) s s r a a m a s t e r t o s l a v e s l a v e t o m a s t e r s t a r t c o n d i t i o n a c k n o w l e d g e s i g n a l r e p e a t e d s t a r t c o n d i t i o n p s t o p c o n d i t i o n a
rs5c372a/b 32 2) the second method to reading data from the internal register is to start reading immediately after writing to the internal address pointer and the transmission format register. although this method is not based on the i 2 c bus standard in a strict sense it still effective to shorten read time to ease load to the master. set 4h to the transmis - sion format register when this method is used. example 2 of data read (when data is read from internal addresses eh to 1h). s 0 1 1 0 0 0 1 0 1 1 1 0 0 0 1 0 a a s p a a a a p a a r / w = 0 ( w r i t e ) t r a n s m i s s i o n o f s l a v e a d d r e s s ( 0 1 1 0 0 1 0 ) s e t t i n g o f e h t o t h e i n t e r n a l a d d r e s s p o i n t e r s e t t i n g o f 4 h t o t h e t r a n s - m i s s i o n f o r m a t r e g i s t e r r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s f h . m a s t e r t o s l a v e s l a v e t o m a s t e r s t a r t c o n d i t i o n a c k n o w l e d g e s i g n a l s t o p c o n d i t i o n r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 0 h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 1 h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s e h a d a t a d a t a d a t a d a t a
rs5c372a/b 33 3) the third method to reading data from the internal register is to start reading immediately after writing to the slave address and the r/w bit. since the internal address pointer is set to fh by default as described in 1), this method is only effective when reading is started from the internal address fh. example 3 of data read (when data is read from internal addresses fh to 3h). s 0 1 1 0 1 0 1 0 a a s p a a a a p a a r / w = 1 ( r e a d ) t r a n s m i s s i o n o f s l a v e a d d r e s s ( 0 1 1 0 0 1 0 ) r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s f h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 1 h . m a s t e r t o s l a v e s l a v e t o m a s t e r s t a r t c o n d i t i o n a c k n o w l e d g e s i g n a l s t o p c o n d i t i o n r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 2 h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 3 h . r e a d i n g o f d a t a f r o m t h e i n t e r n a l a d d r e s s 0 h . a d a t a d a t a d a t a d a t a d a t a
rs5c372a/b 34 1.2-6 data tr ansmission under special condition the rs5c372a/b hold the clock tentatively for duration from start condition to stop condition to avoid invalid read or write clock on carrying clock. when clock is carried during this period, which will be adjusted within approx. 61 s from stop condition. to prevent invalid read or write clock shall be made during one transmission operation (from start condition to stop condition). when 0.5 to 1.0 second elapses after start condition any access to the rs5c372a/b are automatically released to release tentative hold of the clock, set fh to the address pointer, and access from the cpu is forced to be terminated (the same action as made stop condition is received: automatic resume function from the i 2 c bus interface). therefore, one access must be completed within 0.5 seconds. the automatic resume function prevents delay in clock even if the scl is stopped from sudden failure of the system dur - ing clock read operation. also a second start condition after the first condition and before the stop condition is regarded as the ?epeated start condition.? therefore, when 0.5 to 1.0 seconds passed after the first start condition, access to the rs5c372a/b are automatically released. if access is tried after automatic resume function is activated, no acknowledge signal will be output for writing while ffh will be output for reading. access to the real-time clock 1) no stop condition shall be generated until clock read/write is started and completed. 2) one cycle read/write operation shall be completed within 0.5 seconds. the user shall always be able to access the real-time clock as long as these two conditions are met. bad example of reading from seconds to hours (invalid read) (start condition) ? (read of seconds) ? (read of minutes) ? (stop condition) ? (start condition) ? (read of hour) ? (stop condition) assuming read was started at 05:59:59 p.m. and while reading seconds and minutes the time advanced to 06:00:00 p.m. at this time second digit is hold so the read as 05:59:59. then the rs5c372a/b confirm (stop condition) and carry second digit being hold and the time changes to 06:00:00 p.m. then, when the hour digit is read, it changes to 6. the wrong results of 06:59:59 will be read.
rs5c372a/b 35 2. configuration of oscillating cir cuit and time t rimming 2.1 configuration of oscillating cir cuit 8 7 6 r s 5 c 3 7 2 a / b r f r d c d c g o s c i n o s c o u t 3 2 k h z v d d v d d a typical external device: x'tal: 32.768khz or 32.000khz (r 1 =30k typ.) (c l =6pf to 8pf) typical values of internal devices: r f 15m (typ.) r d 60k (typ.) c g , c d 10pf (typ.) the oscillation circuit is driven at a constant voltage of about 1.2v relative to the vss level. consequently, it generates a wave form having a peak-to-peak amplitude of about 1.2v on the positive side of the vss level. considerations on crystal oscillator basic characteristics of a crystal oscillator includes r 1 (equivalent series resistance: ease of oscillation) and c l (load capacitance: rank of center frequency). r 1 =typ. of 30k , c l =6 to 8pf is recommended for the rs5c372a/b. confirm recommended values to the manufacturer of the crystal oscillator used. considerations in mounting components surrounding oscillating circuit 1) mount the crystal oscillators in the closest possible position to the ic. 2) avoid laying any signal or power line close to the oscillation circuit (particularly in the area marked with ? a ? ?in the above figure). 3) apply the highest possible insulation resistance between the oscin or oscout pin and the pcb. 4) avoid using any long parallel line to wire the oscin and oscout pin. 5) take extreme care not to cause condensation, which leads to various problems such as oscillation halt. other relevant considerations 1) when applying an external input of clock pulses (32.768khz or 32.000khz) to the oscin pin: dc coupling : prohibited due to mismatching of input levels. ac coupling : permissible except that unpredictable results may occur in oscillator halt sensing due to possible sensing errors caused by noises, etc. 2) avoid using the oscillator output of the rs5c372a/b (from the oscout pin) to drive any other ic for the purpose of ensuring stable oscillation.
rs5c372a/b 36 2.2 measurement of oscillation frequenc y f r e q u e n c y c o u n t e r r s 5 c 3 7 2 a / b 3 2 . 7 6 8 k h z o r 3 2 . 0 0 0 k h z o s c i n o s c o u t v d d v s s i n t r b ( 3 2 k o u t ) * 4 * 4 * 3 * 1) clock pulse of 32.768khz or 32.000khz is output from the intrb output pin on powering on (xstp is set to 1). * 2) use a frequency counter having at least 6 digits (7digits or more recommended). * 3) pull-up the intrb output pin to v dd for the rs5c372a. * 4) intrb applies to the rs5c372a, and 32kout applies to the RS5C372B. the RS5C372B does not need pull-up resistor. 2.3 oscillation frequenc y adjustment adjustment amount of oscillation frequency may differ dependent on how the rs5c372a/b is used or how much clock error is permissible in the system it is installed. use the flow chart shown below find an optimal oscillation frequency adjustment method. s t a r t 3 2 k h z c l o c k u s e d ? n o n o n o y e s y e s y e s y e s n o 3 2 k h z c l o c k o u t p u t i s u s e d , b u t c l o c k f r e q u e n c y p r e c i s i o n i s n o t c o n s i d e r e d f o r c l o c k p r e c i s i o n e r r o r s d e r i v e d b y a d d i n g d e f l e c t i o n i n c r y s t a l o s c i l l a t o r * 1 + d e f l e c t i o n i n i c * 2 i s p e r m i s s i b l e * 3 . f o r c l o c k p r e c i s i o n e r r o r s d e r i v e d b y a d d i n g d e f l e c t i o n i n c r y s t a l o s c i l l a t o r * 1 + d e f l e c t i o n i n i c * 2 i s p e r m i s s i b l e * 3 . ( a ) c o u r s e ( b ) c o u r s e ( c ) c o u r s e ( d ) c o u r s e * 1) in general crystal oscillators are classified by their central frequency of c l (load capacitance) and available further grouped in several ranks as 10, 20 and 50ppm of fluctuations in precision. * 2) fluctuations in frequency due to the ic used is generally from 5 to 10ppm at a room temperature. * 3) clock precision here is at a room temperature and is subjected to change due to temperature characteristics of the crystal itse lf.
rs5c372a/b 37 (a) course adjustment of clock is not made for ic (no adjustment) and any c l value may be used for the crystal oscillator. pre - cision fluctuations of a crystal oscillator may be selected as long as clock precision allows. obtain the central fre - quency as described in section 2.2 using several crystal oscillator and ics, determine an adjustment value as described in ?.4 time trimming circuit?which shall be set to the rs5c372a/b. (b) course to keep clock precision within the range of (fluctuation in crys-tal oscillator + fluctuation in ic), clock shall be adjustment is required for each ic. on adjusting procedures see ?.4 time trimming circuit.? available selection range for the frequency precision fluctuations and c l (load capacitance) for a crystal oscillator may be widened by adjusting clock frequency. obtain the central frequency as described in section 2.2 using the crystal oscillator and ic to be used, determine if an adjustment is possible or not using the clock adjustment circuit, perform adjustment for each ic using the clock adjustment circuit. up to 1.5ppm may be adjusted at a room temperature. (c) course in (c) and (d) courses, adjustment of 32-khz clock output frequency as well as clock is necessary. frequency adjustment for the crystal oscillator is made by adjusting both of c g and c d connected to the both ends of the oscil - lator. since the rs5c372a/b incorporate the c g and c d , oscillating frequency is required using c l of the crystal oscillator as the reference. generally, relation between c l and c g or c d is as follows: c l = c g c d + c s c s : board floating capacitance c g + c d although a crystal oscillator having c l value of around 6 to 8pf is recommended for the rs5c372a/b, measure oscillation frequency as described in section 2.2 and if frequency is high (clock gains) switch to a crystal oscillator with smaller c l while if frequency is small (clock loses) switch to an oscillator with larger c l . using these proce - dures select a crystal oscillator with optimal c l and set unadjusted value to the clock adjustment circuit. (see section 2.4, ?ime trimming circuit?) we recommend to consult the crystal manufacturer on compatibility of c l values. high oscillation frequency (clock gains) may be adjusted by externally adding c gout as shown below. 8 7 6 r s 5 c 3 7 2 a / b r f r d c d c g o s c i n o s c o u t 3 2 k h z c g o u t v d d v d d * 1 * 1) c gout shall be from 0 to 15pf. (d) course select a crystal oscillator as in the (c) course, then adjust clock error for each ic as in (b) course. for clock adjust - ing procedures, see ?.4 time trimming circuit.
rs5c372a/b 38 2.4 time t rimming cir cuit using the time trimming circuit gain or lose of clock may be adjusted with high precision by changing clock pulses for one second every 20 seconds. when adjustment with this circuit is not necessary, set (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f0) to ( * , 0, 0, 0, 0, 0, * ) to disable adjustment. ( * mark indicates 0 or 1.) adjustment amount may be calculated using the following formula. 2.4-1 when oscillation frequency* 1 >target frequency* 2 (cloc k gains) adjustment amount* 3 = (oscillation frequency ?target frequency + 0.1) oscillation frequency 3.051 10 ? = (oscillation frequency ?target frequency) 10 + 1 when 32.000khz crystal oscillator is used, the same formula, adjustment amount = (oscillation frequency ?target frequency + 0.1) oscillation frequency 3.125 10 ? = (oscillation frequency ?target frequency) 10 + 1 is used. * 1) oscillation frequency : clock frequency output from the intrb (32kout for the RS5C372B) pin as in ?.2 oscillation frequency measurement?at a room temperature. * 2) target frequency : a frequency to be adjusted to. since temperature characteristics of a 32.768khz crystal oscillator are such that it will generally generates the highest fre- quency at a room temperature, we recommend to set the target frequency to approx. 32768.00hz to 32768.10hz (+3.05ppm to 32768hz). we also recommend setting of approx. 32000.00hz to 32000.10hz (3.125ppm to 32000hz) also for the 32.000khz crystal. note that this value may differ based on the environment or place where the device will be used. * 3) adjustment amount : a value to be set finally to f 6 to f 0 bits. this value is expressed in 7bit binary digits with sign bit (two's compliment). 2.4-2 when oscillation frequency=target frequency (no cloc k gain or loss) set the adjustment value to 0 or +1, or ?4 or ?3 to disable adjustment. 2.4-3 when oscillation frequency rs5c372a/b 39 example of calculations (1) when oscillation frequency=32768.85khz ; target frequency=32768.05khz adjustment value= (32768.85?2768.05+0.1) / (32768.85 3.051 10 ? ) = (32768.85+32768.05) 10+1=9.001=9 set (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 ) to (0, 0, 0, 1, 0, 0, 1). as this example shows, adjustments to be used when the clock gains shall be distance from 01h. (2) when actual oscillation frequency=32763.95khz ; target frequency=32768.05khz adjustment value= (32763.95?2768.05) / (32763.95 3.051 10 ? ) = (32763.95?2768.05) 10=?1.015=?1 to express ?1 in 7bit binary digits with sign bit (two's compliment), subtract 41(29h) from 128(80h) in the above case, 80h?9h=57h. thus, set (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 ) to (1, 0, 1, 0, 1, 1, 1). as this example shows, adjustments to be used when the clock loses shall be distance from 80h. after adjustment, adjustment error against the target frequency will be approx. 1.5ppm at a room temperature. notes 1) clock frequency output from the intrb (32kout for the RS5C372B) pin will not change after adjustment by the clock adjustment circuit. 2) adjustable range: the range of adjustment values for a case oscillation frequency is higher than target fre - quency (clock gains) is (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 )=(0, 0, 0, 0, 0, 1, 0) to (0, 1, 1, 1, 1, 1, 1) and actual adjustable amount shall be ?.05ppm to ?89.2ppm (?.125ppm to ?93.7ppm for 32.000khz crystal), thus clock error may be adjusted until clock gain reaches +189.2ppm (+193.7ppm for 32.000khz crystal). on the other hand, the range of adjustment values for a case when oscillation frequency is lower than tar - get frequency (clock loses) is (f 6 , f 5 , f 4 , f 3 , f 2 , f 1 , f 0 )=(1, 1, 1, 1, 1, 1, 1) to (1, 0, 0, 0, 0, 1, 0) and actual adjustable amount shall be +3.05ppm to +189.2ppm (+3.125ppm to +193.8ppm for 32.000khz crystal), thus clock error may be adjsted until clock loss reaches ?89.2ppm (?93.8ppm for 32.000khz crystal). . . . . . .
rs5c372a/b 40 3. oscillator halt sensing oscillation halt can be sensed through monitoring the xstp bit with preceding setting of the xstp bit to 0 by writ - ing data to the control register 2. upon oscillator halt sensing, the xstp bit is switched from 0 to 1. this function can be applied to judge clock data validity. when the xstp bit is 1, xsl, f 6 to f 0 , ct 2 , ct 1 , ct 0 , aale, bale, sl 2 , sl 1 , clen and test bits are reset to 0. considerations in use of xstp bit ensure error-free oscillation halt sensing by preventing the following events: 1) instantaneous disconnection of v dd 2) condensation on the crystal oscillator 3) generation of noise on the pcb in the crystal oscillator 4) application of voltage exceeding prescribed maximum ratings to the individual pins of the ic. * 1) the xstp bit is set to 1 upon power-on from 0v. note that any instantaneous power disconnection may cause operation failure. * 2) once oscillation halt has been sensed, the xstp bit is held at 1 even if oscillation is restarted. 4. intra output and intrb output pins (rs5c372a) , intr output pin (RS5C372B) 4.1 intra output and intrb output pins (rs5c372a) the following three output wave forms can be output from the intra or the intrb pin. 1) alarm interrupt when a registered time for alarm (such as day-of-the-week, hour or minute) coincide with calendar counter (such as day-of-the-week, hour or minute) interrupt to the cpu are requested with the output pin being on (??. alarm interrupt consists of alarm_a and alarm_b, both have equivalent functions. 2) periodic interrupt outputs an output wave form selected by setting the periodic interrupt frequency select bit. wave forms include pulse mode and level mode. 3) 32-khz clock output clock pulses generated in the oscillation circuit are output as they are. 4.1-1 control of the intra, intrb output (flag bit, enab le bit, interr upt output select bit) (rs5c372a) of the three output wave forms listed above, interrupt output conditions may be set by setting the flag bit that moni - tors output state on the register, the enable bit that enables an output wave form and the output select bit that selects either intra or intrb to be output a wave form to. interrupt output select bit (sl2, sl1) flag bit enable bit (d5, d4 at eh) (0,0) (0,1) (1,0) (1,1) alarm_a aafg (d1 at fh) aale (d7 at eh) intra intra intra intra alarm_b bafg (d0 at fh) bale (d6 at eh) intra intrb intra intrb periodic interrupt ctfg (d2 at fh) disabled at ct 2 =ct 1 =ct 0 =0 intra intra intrb intrb (d2 to d0 at eh) 32-khz clock output no clen (d3 at fh) intrb intrb intrb intrb
rs5c372a/b 41 ? when power on (xstp=1) since aale=bale=ct 2 =ct 1 =ct 0 =clen=sl 2 =sl 1 =0, intra=off ( ? ). 32-khz clock pulses are output from the intrb pin. ? when more than one output wave forms are output from a single output pin, the output will have or wave form of negative logic of both. example: when alarm_a and alarm_b are output from the intra pin. a l a r m _ a a l a r m _ b i n t r a in such a case which output wave form is output from the pin may be confirmed by reading the flag register. 4.1-2 alar m interr upt (rs5c372a) for setting an alarm time, designated time such as day-of-the-week, hour or minute should be set to the alarm regis - ters being aale (bale) bit to 0. after that set the aale (bale) bit to 1, from this moment onward when such registered alarm time coincide the value of calendar counter the intra or intrb comes down to ??(on). the intra or intrb output can be controlled by operating to the aale (bale) and aafg (bafg) bits. a l a r m - c a l e n d a r c o i n c i d e n c e p e r i o d ( 1 m i n . ) d a y - o f - t h e - w e e k , t i m e m a t c h e d d a y - o f - t h e - w e e k , t i m e m a t c h e d d a y - o f - t h e - w e e k , t i m e m a t c h e d d a y - o f - t h e - w e e k , t i m e m a t c h e d i n t r a o r i n t r b i n t r a o r i n t r b a a l e ? 1 ( b a l e ) a a l e ? 1 ( b a l e ) a a l f g ? 0 ( b a f g ) a a l e ? 0 ( b a l e ) a a l e ? 0 ( b a l e ) a a l e ? 1 ( b a l e ) a a : m a x . 6 1 . 1 s ( m a x . 6 2 . 5 s w h e n 3 2 . 0 0 0 k h z c r y s t a l i s u s e d . ) * ) note that aafg (bafg) has an output wave form of reversed logic.
rs5c372a/b 42 4.2 intr output pin (RS5C372B) the following three output wave forms can be output from the intr pin. 1) alarm interrupt when a registered time for alarm (such as day-of-the-week, hour or minute) coincide with calendar counter (such as day-of-the-week, hour or minute) interrupt to the cpu are requested with the output pin being on (??. alarm interrupt consists of alarm_a and alarm_b, both have equivalent functions. 2) periodic interrupt outputs an output wave form selected by setting the periodic interrupt frequency select bit. wave forms include pulse mode and level mode. 4.2-1 control of the intr output (flag bit, enab le bit, interr upt output select bit) (RS5C372B) of the two output wave forms listed above, interrupt output conditions may be set by setting the flag bit that moni - tors output state on the register, the enable bit that enables an output wave form. flag bit enable bit alarm_a aafg (d1 at fh) aale (d7 at eh) alarm_b bafg (d0 at fh) bale (d6 at eh) periodic interrupt ctfg (d2 at fh) disabled at ct 2 =ct 1 =ct 0 =0 (d2 to d0 at eh) ? when power on (xstp=1) since aale=bale=ct 2 =ct 1 =ct 0 =0, intr=off ( ? ). ? when more than one output wave forms are output from a single output pin, the output will have or wave form of negative logic of both. example: when alarm_a and alarm_b are output from the intr pin. a l a r m _ a a l a r m _ b i n t r in such a case which output wave form is output from the pin may be confirmed by reading the flag register.
rs5c372a/b 43 4.3 p eriodic (cloc k) interrupt the intra or intrb pin (intr for the RS5C372B) output, the periodic interrupt cycle select bits (ct 2 , ct 1 , ct 0 ) and the interrupt output select bits (sl2, sl1) can be used to interrupt the cpu in a certain cycle. the periodic interrupt cycle select bits can be used to select either one of two interrupt output modes: the pulse mode and the level mode. interrupt cycle selection ct 2 ct 1 ct 0 description wave from mode cycle and falling timing 0 0 0 off (default) 0 0 1 fixed at ? 0 1 0 pulse mode 2hz (duty50%) 0 1 1 pulse mode 1hz (duty50%) 1 0 0 level mode every second (coincident with second count-up) 1 0 1 level mode every minute (at 00 second) 1 1 0 level mode every hour (at 00:00 on the hour) 1 1 1 level mode every month (1st day, 00:00:00 a.m.) 1) pulse mode : outputs 2hz, 1hz clock pulses. for relationships with counting up of seconds see the diagram below. * ) when 32.000khz crystal is used, in the 2hz clock pulse mode, 0.496s clock pulses and 0.504s clock pulse are output alternately. duty cycle for 1hz clock pulses becomes 50.4% (??duration is 0.496s while ??duration is 0.504s). 4.2-2 alar m interr upt (RS5C372B) for setting an alarm time, designated time such as day-of-the-week, hour or minute should be set to the alarm regis - ters being aale (bale) bit to 0. after that set the aale (bale) bit to 1, from this moment onward when such registered alarm time coincide the value of calendar counter the intr comes down to ??(on). the intr output can be controlled by operating to the aale (bale) and aafg (bafg) bits. a l a r m - c a l e n d a r c o i n c i d e n c e p e r i o d ( 1 m i n . ) d a y - o f - t h e - w e e k , t i m e m a t c h e d d a y - o f - t h e - w e e k , t i m e m a t c h e d d a y - o f - t h e - w e e k , t i m e m a t c h e d d a y - o f - t h e - w e e k , t i m e m a t c h e d i n t r i n t r a a l e ? 1 ( b a l e ) a a l e ? 1 ( b a l e ) a a l f g ? 0 ( b a f g ) a a l e ? 0 ( b a l e ) a a l e ? 0 ( b a l e ) a a l e ? 1 ( b a l e ) a a : m a x . 6 1 . 1 s ( m a x . 6 2 . 5 s w h e n 3 2 . 0 0 0 k h z c r y s t a l i s u s e d . ) * ) note that aafg (bafg) has an output wave form of reversed logic.
rs5c372a/b 44 2) level mode : one second, one minute or one month may be selected for an interrupt cycle. counting up of sec - onds is matched with falling edge of interrupt output. 3) when the time trimming circuit is used, periodic interrupt cycle changes every 20 seconds. pulse mode : ??duration of output pulses may change in the maximum range of 3.784ms ( 3.875ms when 32.000khz crystal is used.) for example, duty will be 50 0.3784% (or 50 0.3875% when 32.000khz crystal is used) at 1hz. level mode : frequency in one second may change in the maximum range of 3.784ms ( 3.875ms when 32.000khz crystal is used.) relation betw een mode w a v ef or ms and ctfg bit ?pulse mode a p p r o x . 9 2 s ( 3 2 . 7 6 8 k h z c r y s t a l i s u s e d ) a p p r o x . 9 4 s ( 3 2 . 0 0 0 k h z c r y s t a l i s u s e d ) c t f g b i t ( c o u n t i n g u p o f s e c o n d s ) i n t r a o r i n t r b p i n s ( i n t r p i n f o r t h e r s 5 c 3 7 2 b ) * ) since counting up of seconds and the falling edge has a time lag of approx. 92 s (at 32.768khz) (approx. 94 s when 32.000khz crystal is used), a time may be read with apparently approx. one second delayed from time of the real-time clock when time is read in synchronizati on with the falling edge of output. ?level mode w r i t e 0 t o c t f g ( s e c o n d c o u n t - u p ) w r i t e 0 t o c t f g c t f g b i t ( s e c o n d c o u n t - u p ) ( s e c o n d c o u n t - u p ) i n t r a o r i n t r b p i n s ( i n t r p i n f o r t h e r s 5 c 3 7 2 b )
rs5c372a/b 45 4.4 32-khz cloc k output ? rs5c372a the crystal oscillator can generate clock pulses of 32khz from the intrb pin. the pin is changed to ??by setting the clen bit to ?? * 1) 32-khz clock output will not be affected from settings in the clock adjustment register. * 2) when power on (xstp=1) 32-khz clock pulses are output from the intrb pin. ? RS5C372B the crystal oscillator can generate clock pulses of 32khz from the 32kout pin.the pin is changed to ?ff?by set - ting the clen bit to ?? * 1) 32-khz clock output will not be affected from settings in the clock adjustment register. * 2) when power on (xstp=1) 32-khz clock pulses are output from the 32kout pin. m a x . 7 6 . 3 s m a x . 7 6 . 3 s c l e n b i t s e t t i n g 3 2 k o u t p i n o u t p u t ( m a x . 7 8 . 1 s w h e n 3 2 . 0 0 0 k h z c r y s t a l i s u s e d ) ( m a x . 7 8 . 1 s w h e n 3 2 . 0 0 0 k h z c r y s t a l i s u s e d )
rs5c372a/b 46 5. t ypical applications 5.1 examples of cir cuits example 1 r s 5 c 3 7 2 a / b 3 2 . 7 6 8 k h z o r 3 2 . 0 0 0 k h z a b o s c i n o s c o u t v d d v s s i n t r a o r b ( i n t r ) s y s t e m p o w e r s u p p l y * 3 * 2 * 1 * 1) mount the high-and low-frequency by-pass capaci - tors in parallel and very close to the rs5c372a/b. * 2) connect the pull-up resistor of the intra pin or the intrb pin (intr ) to two different positions depend - ing on whether the resistor is in use during battery back-up: (i) when not in use during battery back-up .......... position a in the left figure (ii) when in use during battery back-up .......... position b in the left figure * 3) intra and intrb for the rs5c372a, intr for the RS5C372B. example 2 r s 5 c 3 7 2 a / b a b 3 2 . 7 6 8 k h z o r 3 2 . 0 0 0 k h z o s c i n o s c o u t v d d v s s i n t r a o r b ( i n t r ) s y s t e m p o w e r s u p p l y * 2 * 1) connection in the example shown left may not affect the rs5c372a/b except the 32kout of the RS5C372B since it is designed to be operational even when the pin voltage exceeds v dd . * 2) intra and intrb for the rs5c372a, intr for the RS5C372B.
rs5c372a/b 47 5.2 example of interface cir cuit to the cpu ? rs5c372a v d d m i c r o c o n t r o l l e r 3 2 . 7 6 8 k h z o r 3 2 . 0 0 0 k h z v d d v s s o s c i n o s c o u t s c l s d a i n t r b r s 5 c 3 7 2 a i n t r a s y s t e m p o w e r s u p p l y b a c k u p p o w e r s u p p l y * ) the scl and sda pins of the rs5c372a do not contain protective diodes on v dd side. therefore, back up power supply system power supply caus - es no adverse effect. v d d m i c r o c o n t r o l l e r 3 2 . 7 6 8 k h z o r 3 2 . 0 0 0 k h z v d d v s s o s c i n o s c o u t s c l s d a i n t r r s 5 c 3 7 2 b 3 2 k o u t s y s t e m p o w e r s u p p l y b a c k u p p o w e r s u p p l y * ) the scl and sda pins of the RS5C372B do not contain protective diodes on v dd side. therefore, back up power supply system power supply caus - es no adverse effect. ? RS5C372B
rs5c372a/b 48 software setting (1) use periodic interrupt immediately after power on to output on (?? from the intrb pin. (2) when you want to turn power off use alarm_b or periodic interrupt to set a timing for power on and output it from the intrb. the intrb remains off (?? until the timing specified, high voltage is applied to the regulator ce pin thus power for the micro controller is turned off. (3) on reaching the specified timing, the intrb pin switches to on (?? and power turns on. hereafter, power is turned off by setting 0 to the balfg or the ctfg and turned on again at a next timing specified. 5.3 example of p o wer suppl y w ake-up cir cuit (rs5c372a only) the sample circuit below has been designed so that system power supply turns on at a time set in the alarm_b using the alarm_b of the rs5c372a and the rn5rz a (rn5rt a) * 1 . r n 5 r z a o r r n 5 r t a v d d v o u t r s 5 c 3 7 2 a c e v d d m i c r o c o n t r o l l e r 3 2 . 7 6 8 k h z o r 3 2 . 0 0 0 k h z v d d v s s o s c i n o s c o u t s c l s d a i n t r b s y s t e m p o w e r s u p p l y b a c k u p p o w e r s u p p l y * 1 * 2 * 3 * 3 * 4 * 1) the rn5rz a and the rn5rt a are ricoh regulators with stand-by functions. * 2) the intrb of the rs5c372a outputs 32-khz clock pulses on power on. a capacitor is included so that ce will not change to ??w hile 32-khz clock is off (?? to allow the regulator to be turned on. * 3) this resistor is used to prevent excess current from flowing into the pins of the rs5c372a/b and the rn5rz a (rn5rt a) on power on. * 4) pull-up resistors of the scl and sda are not shown in the figure for clarity.
rs5c372a/b 49 6. t ypical characteristic measurements test circuit x'tal : 32.768khz (r 1 =30k typ.) (c l =6pf to 8pf) topt : 25?c output pins : open 3 2 . 7 6 8 k h z o s c i n o s c o u t v d d v s s i n t r b ( 3 2 k o u t ) 8 7 6 4 1 f r e q u e n c y c o u n t e r * 1 * 1 6.1 standb y suppl y current vs. p o wer suppl y v olta g e p o w e r s u p p l y v o l t a g e v d d ( v ) 0 0 1 2 2 4 6 s t a n d b y s u p p l y c u r r e n t i d d ( a ) ( t o p t = 2 5 ? c , i n t r b ( 3 2 k o u t ) = o f f ) p o w e r s u p p l y v o l t a g e v d d ( v ) 0 0 1 2 2 4 6 s u p p l y c u r r e n t d u r i n g 3 2 k c l o c k o u t p u t i d d ( a ) ( t o p t = 2 5 ? c , i n t r b = o p e n ) s c l c l o c k f r e q u e n c y ( k h z ) 0 0 1 0 1 5 5 2 0 2 0 0 4 0 0 6 0 0 s u p p l y c u r r e n t d u r i n g a c c e s s i d d ( a ) ( t o p t = 2 5 ? c , s d a = o p e n ) v d d = 3 v v d d = 5 v * 1) intrb applies to the rs5c372a, and the 32kout applies to the RS5C372B. the RS5C372B does not need pull up resistor. 0 0 1 2 3 4 5 6 2 4 6 ( t o p t = 2 5 ? c , 3 2 k o u t = o p e n ) p o w e r s u p p l y v o l t a g e v d d ( v ) s u p p l y c u r r e n t d u r i n g 3 2 k c l o c k o u t p u t i d d ( a ) 6.2 suppl y current during 32k cloc k output vs. p o wer sppl y v olta g e (rs5c372a) 6.2 suppl y current during 32k cloc k output vs. p o wer sppl y v olta g e (RS5C372B) 6.3 suppl y current during cpu access vs. scl cloc k frequenc y
rs5c372a/b 50 e x t e r n a l c g ( p f ) 0 5 0 1 0 2 0 3 0 4 0 1 0 0 5 1 5 1 0 2 0 o s c i l l a t i o n f r e q u e n c y d e v i a t i o n ( p p m ) ( t o p t = 2 5 ? c , v d d = 3 v , e x t e r n a l c g = 0 p f s t a n d a r d ) p o w e r s u p p l y v o l t a g e v d d ( v ) 0 1 5 2 0 1 2 1 4 3 5 3 4 2 5 3 4 6 o s c i l l a t i o n f r e q u e n c y d e v i a t i o n ( p p m ) ( t o p t = 2 5 ? c , v d d = 3 v s t a n d a r d ) t e m p e r a t u r e t o p t ( ? c ) 6 0 4 0 2 0 2 0 0 2 0 0 0 4 0 8 0 1 2 0 1 6 0 4 0 6 0 8 0 1 0 0 o s c i l l a t i o n f r e q u e n c y d e v i a t i o n ( p p m ) ( v d d = 3 v , t o p t = 2 5 ? c s t a n d a r d ) p o w e r s u p p l y v o l t a g e v d d ( v ) 0 1 3 4 2 0 5 0 0 4 0 0 3 0 0 2 0 0 1 0 0 5 6 o s c i l l a t i o n s t a r t t i m e ( m s ) ( t o p t = 2 5 ? c ) v o l ( v ) 0 0 2 0 1 0 3 0 5 0 4 0 0 . 2 0 . 8 0 . 4 0 . 6 1 i o l ( m a ) ( t o p t = 2 5 ? c ) * 1 v d d = 3 v v d d = 5 v * 1) avoid continuous flowing of current of 20ma or more to the intra, intrb, or intr pin. t e m p e r a t u r e t o p t ( ? c ) 6 0 0 1 2 4 0 2 0 8 0 6 0 0 2 0 4 0 1 0 0 s t a n d b y s u p p l y c u r r e n t i d d ( a ) ( v d d = 3 . 0 v , s d a = o p e n ) 6.5 oscillation frequenc y de viation vs. external c g 6.7 oscillation frequenc y de viation vs. t emperature 6.9 v ol vs. i ol (intra, intrb or intr pin) * 1 6.6 oscillation frequenc y de viation vs. p o wer suppl y v olta g e 6.8 oscillation star t time vs. p o wer suppl y v olta g e 6.4 standb y suppl y current vs. t emperature
rs5c372a/b 51 7. t ypical software-based operations 7.1 initialization upon p o wer -on s t a r t x s t p = 1 ? p o w e r - o n n o y e s c o n t r o l r e g i s t e r 2 ? ( 0 0 ) s e t c l o c k a n d c a l e n d a r c o u n t e r s a n d i n t e r r u p t c y c l e s a c k n o t r e t u r n e d o r r e a d d a t a i s f f h * 3 * 1 * 4 * 5 * 2 * 1) start access after waiting one to two seconds that are required for starting up of oscillation and internal initialization afte r power on from 0v. * 2) if access is tried during ic internal initialization period described in * 1, acknowledge signal may not be output, it is output only at first, or values read may ffh. if any of these occurs, repeat accessing. this will be required also for ordinary routines when accessing may require 0. 5 seconds or more. * 3) when xstp=0 in oscillation halt sensing, it indicates power has not been booted from 0v but from back up supply. * 4) the xstp shall be set to 0 by setting any data to the control register 2. * 5) perform ordinary initial setting including clock calendar or interrupt cycle. 7.2 write operation to cloc k and calendar counter s s t o p c o n d i t i o n s t a r t c o n d i t i o n w r i t e t o c l o c k a n d c a l e n d a r c o u n t e r s * 1 * 2 * 1) when writing to clock and calendar counters, do not insert stop condition until all times from second to year have been written to prevent error in writing time. * 2) take care so that process from start condition to stop condi - tion will be completed within 0.5 seconds. (the rs5c372a/b force access to the cpu to terminate within 0.5 to 1.0 sec - onds after start condition has occurred in case the cpu is failed during access.)
rs5c372a/b 52 7.3 read operation fr om cloc k and calendar counter s s t o p c o n d i t i o n s t a r t c o n d i t i o n r e a d f r o m c l o c k a n d c a l e n d a r c o u n t e r s * 1 * 2 * 1) when reading from clock and calendar counters, do not insert stop condition until all times from second to year have been read to prevent error in reading time. * 2) take care so that process from start condition to stop condi - tion will be completed within 0.5 seconds. (the rs5c372a/b force access to the cpu to terminate within 0.5 to 1.0 sec - onds after start condition has occurred in case the cpu is failed during access.) 7.4 second digit adjustment b y 30 seconds c o n t r o l r e g i s t e r 2 ? ( 0 0 1 1 1 1 ) * 1 * 1) write 1 to the adj bit. (the 30 seconds of adjustment is made within 122.1 s (125 s when 32.000khz crystal is used) after the adj bit is set to 1.) 7.5 interrupt operation 7.5-1 p er iodic interr upt oper ation c t f g = 1 ? p e r i o d i c i n t e r r u p t o p e r a t i o n o t h e r i n t e r r u p t o p e r a t i o n i n t e r r u p t t o c p u c o n t r o l r e g i s t e r 2 ? ( 0 0 0 1 1 ) s e t p e r i o d i c i n t e r r u p t c y c l e s e l e c t b i t a n d i n t e r r u p t o u t p u t s e l e c t b i t y e s n o * 1 * 2 * 1) the level mode is used for the periodic interrupt cycle select bit. * 2) interrupt to the cpu is cancelled by setting the ctfg bit to 0.
rs5c372a/b 53 7.5-2 alar m interr upt oper ation a a f g ( b a f g ) = 1 ? i n t e r r u p t t o c p u a a l e o r b a l e = 1 a a l e o r b a l e = 0 s e t a l a r m ( h o u r o r m i n u t e , d a y - o f - t h e - w e e k ) i n t e r r u p t o u t p u t s e l e c t s e t b i t s n o y e s * 1 * 2 * 3 a l a r m i n t e r r u p t o p e r a t i o n o t h e r i n t e r r u p t o p e r a t i o n c o n t r o l r e g i s t e r 2 ? ( 0 0 1 0 1 ) * 1) before setting alarm time, disable alarm function tentatively by setting aale or bale to 0 in case the set time agrees with the current time. * 2) after all alarm settings have been completed, enable alarm function. * 3) tentatively unlock alarm. write (00 101) when alarm_a is used. write (00 110) when alarm_b is used.
rs5c372a/b 54 p a cka ge dimensions (unit: mm) ?rs5c372a/b (8pin ssop 0.65mm pitch) 0 . 1 5 + 0 . 1 - 0 . 0 5 0 . 5 0 . 3 0 t o 1 0 0 . 1 0 . 1 0 . 1 5 0 . 1 m 0 . 2 2 0 . 1 1 . 1 5 0 . 1 0 . 7 7 5 t y p . 0 . 6 5 1 4 6 . 4 0 . 3 4 . 4 0 . 2 8 5 3 . 5 0 . 3 t aping specifica tion (unit: mm) 0 . 3 2 . 7 m a x . 4 . 0 0 . 1 2 . 0 0 . 0 5 8 . 0 0 . 1 1 . 7 5 0 . 1 5 . 5 0 . 0 5 3 . 9 6 . 7 1 2 . 0 0 . 3 1 . 5 + 0 . 1 0 u s e r d i r e c t i o n o f f e e d the rs5c372a/b have one designated taping direction. the product designations for the taping components are ?s5c372a-e2?and ?s5c372b-e2?
ricoh company, ltd. electronic devices division headquarters 13-1, himemuro-cho, ikeda city, osaka 563-8501, japan phone +81-727-53-6003 fax +81-727-53-2120 yokohama office (international sales) 3-2-3, shin-yokohama, kohoku-ku, yokohama city, kanagawa 222-8530, japan phone +81-45-477-1697 fax +81-45-477-1694 ?1695 http://www.ricoh.co.jp/lsi/english/ ricoh corporation electronic devices division san jose office 1996 lundy avenue, san jose, ca 95131, u.s.a. phone +1-408-944-3306 fax +1-408-432-8375 http://www.ricoh-usa.com/semicond.htm


▲Up To Search▲   

 
Price & Availability of RS5C372B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X